import request from '@/utils/request'

export function listComplement(query) {
    return request({
        url: '/listComplement',
        method: 'post',
        data: query
    })
}

export function addComplement(query) {
    return request({
        url: '/addComplement',
        method: 'post',
        data: query
    })
}
/**
 * 
 * @param query 
 * @returns 修改 
 */
export function updateComplement(query) {
    return request({
        url: '/updateComplement',
        method: 'post',
        data: query
    })
}

export function getComplement(query) {
    return request({
        url: '/getComplement',
        method: 'get',
        params: query
    })
}
export function runComple(query) {
    return request({
        url: '/runComple',
        method: 'post',
        data: query
    })
}

export function listLog(query) {
    return request({
        url: '/listLog',
        method: "post",
        data: query
    })
}

export function getFile(query){
    return request({
        url: '/getFile',
        method: "post",
        params: query
    })
}
